<br /><br />
<div id="view-content">
    Il y a <?php echo $this->nb ?> activités
    <ul>
        <?php
        foreach ($this->tabActivity as $activity) {
            ?>
            <li class="red" style="height: 40px;">
                <div class="half left">
                    <a 
                        href=" 
                        <?php echo $this->url(array('module' => 'admin', 'controller' => 'Activites', 'action' => 'edit', 'id' => $activity->getId())); ?>
                        ">
                            <?php echo $activity->getTitle() ?>
                    </a>
                    <div class="tierce right">
                        <?php echo $this->translate('view_event_readall_by') . " " . $activity->getOwner()->toString() ?>
                    </div>
                </div>
                <div class="tierce right">
                    <a 
                        href=" 
                        <?php echo $this->url(array('module' => 'admin', 'controller' => 'Activites', 'action' => 'delete', 'id' => $activity->getId())) ?> 
                        ">
                            <?php echo $this->translate('view_event_delete') ?>
                    </a>
                </div>
                <div>&nbsp;</div>
                <div class="underline"></div>
            </li>  
            <?php
        }
        ?>
    </ul>
    <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'Activites', 'action' => 'add')) ?>">
        <?php echo $this->translate('view_event_add') ?>
    </a>
    <div class ="comments">
        <?php
        foreach ($this->comments as $comment) {
            ?>
            <div class=comment>
                <div class=comHead>
                    <div class="comAvatar">
                        <img src="/appliweb/public/images/visitor.png"/>
                    </div>
                    <div class="comMeta">
                        <div class=comAuthor>
                            <?php echo $comment->getAuthor()->toString(); ?>
                        </div>
                        <div class=comDate>
                            <?php echo $comment->getDate() ?>
                        </div>
                    </div>
                </div>
                <div class='comContent'> 
                    <?php echo $comment->getContent() ?> 
                </div>
                <div class='comDelete'> <a 
                        href=" 
                        <?php echo $this->url(array('module' => 'admin', 'controller' => 'Activites', 'action' => 'deleteComment', 'id' => $comment->getId())) ?> 
                        ">
                            <?php echo $this->translate('view_activity_delete') ?>
                    </a>
                </div>
            </div>
            <?php
        }
        ?>
    </div>
</div>
<script>setAdmin();</script>